import * as types from '../action/action';

const initialState = {
  login:0
}

const user = (state = {...initialState}, action) => {
  switch (action.type) {
    case types.LOGIN:
    return Object.assign({},state,{login:action.data})
    default:
      return state
  }
}
export default user
